Component({
    properties: {
        border: {
            type: Boolean,
            value: !0
        }
    },
    relations: {
        "../cell/cell": {
            type: "child",
            linked: function() {
                this._updateIsFirstCell();
            },
            linkChanged: function() {
                this._updateIsFirstCell();
            },
            unlinked: function() {
                this._updateIsFirstCell();
            }
        }
    },
    externalClasses: [ "cells" ],
    ready: function() {
        this.index = -1;
    },
    methods: {
        _updateIsFirstCell: function() {
            var e = this.getRelationNodes("../cell/cell");
            if (0 < e.length) {
                e.forEach(function(e, t) {
                    return e.updateIsFirstCell(0 === t);
                });
            }
        }
    }
});